﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CRMBiz;

namespace CRMWeb.WebServices
{
    /// <summary>
    /// Summary description for UpdateEmailTemp
    /// </summary>
    public class UpdateEmailTemp : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            try
            {
                string emailTemplate = context.Request.Params["emailTemplate"];
                string templateFormat = context.Request.Params["templateFormat"];
                ClientProfileHandler.UpdateEmailTemplate(emailTemplate, templateFormat);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}